import MainFooterView from "@/views/Layout/MainFooter.vue"

let routes = [
    {
        path: "/",
        alias: "/home",
        name: "home",
        components: {
            default: () => import('@/views/Home/index.vue'),
            footer: MainFooterView
        },

    },
    {
        path: "/category",
        name: "category",
        components: {
            default: () => import('@/views/Category/index.vue'),
            footer: MainFooterView
        },
    },
    {
        path: "/find",
        name: "find",
        components: {
            default: () => import('@/views/Find/index.vue'),
            footer: MainFooterView
        },
    },
    {
        path:"/find/sendDiray",
        name:"sendDiary",
        component:()=>import("@/views/Find/sendDiary.vue")
    },
    {
        path: "/mine",
        name: "mine",
        components: {
            default: () => import('@/views/Mine/index.vue'),
            footer: MainFooterView
        },
    },
    {
        path: "/login",
        name: "login",
        component: () => import('@/views/Login/index.vue')
    },
    {
        path: "/findpwd",
        component: () => import("../views/Findpwd/FindpwdView.vue"),
      },
    {
        path: "/register",
        name: "register",
        component: () => import('@/views/Register/index.vue')
    },
    {
        path: "/search",
        name: "search",
        component: () => import('@/views/Search/index.vue')
    },
    {
        path:'/404',
        name:'notFound',
        component:()=>import('@/views/NotFound/index.vue')
    },
    {
        path:'/:pathMatch(.*)*',
        redirect:'/404'
    }
]

export default routes;